package com.bainc.web.shared.types;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Address implements IsSerializable {
	private String firstLine = "";
	private String secondLine = "";
	private String city = "";
	private String state = "";
	private Long zip = 0L;
	
	public static boolean isValidAddress(Address address) {
		return true;
	}
	
	public static boolean isValidZip(int zip) {
		return true;
	}
	
	public void setFirstLine(String firstLine) {
		this.firstLine = firstLine;
	}
	public String getFirstLine() {
		return firstLine;
	}
	public void setSecondLine(String secondLine) {
		this.secondLine = secondLine;
	}
	public String getSecondLine() {
		return secondLine;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCity() {
		return city;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getState() {
		return state;
	}
	public void setZip(Long zip) {
		this.zip = zip;
	}
	public Long getZip() {
		return zip;
	}
	
	public String toString() {
		String summary = firstLine + ", "
				+ secondLine + ", "
				+ city + ", "
				+ state + ", "
				+ zip;
		return summary;
	}
}
